home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Vk
/
VkResizer.z
/
VkResizer
Wrap
Text File
|
1998-10-20
|
8KB
|
199 lines
VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr((((3333xxxx)))) VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr((((3333xxxx))))
NNNNAAAAMMMMEEEE
VkResizer - Attachment class for resizing and moving widgets
IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
VkComponent : VkCallbackObject
HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
#include <Vk/VkResizer.h>
PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
VkResizer(Boolean autoAdjust = False,
Boolean liveResize = False);
virtual ~VkResizer(void);
CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn
void setIncrements(int resizeWidth,
int resizeHeight,
int moveX, int moveY);
void attach(Widget w);
void detach(void);
void adjustGeometry(void);
AAAAcccccccceeeessssssss FFFFuuuunnnnccccttttiiiioooonnnnssss
Boolean shown(void);
CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
The VkResizer class is an attachment rather than a component. You use
the attach method to attach it to an existing widget, and then call the
show method to make it visible. Once visible, VkResizer will
automatically allow the user to resize and move the widget using
VkResizer's controls. VkResizer is useful to the developer who wants to
give the user geometry control over widgets using a consistent
presentation.
DDDDEEEERRRRIIIIVVVVIIIINNNNGGGG SSSSUUUUBBBBCCCCLLLLAAAASSSSSSSSEEEESSSS
It is not expected that developers would subclass VkResizer.
FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr(((())))
VkResizer(Boolean autoAdjust = False,
Boolean liveResize = False);
virtual void ~VkResizer(void);
PPPPaaaaggggeeee 1111
VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr((((3333xxxx)))) VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr((((3333xxxx))))
The VkResizer constructor creates an object capable of attaching to
a widget and displaying geometry controls for the user. The first
parameter controls whether VkResizer tracks outside geometry changes
to its attached widget, for adjustment of its geometry controls.
The second parameter controls whether the widget itself or a
rectangle representing the widget area is displayed during geometry
changes. Setting the second parameter to True causes intermediate
geometry changes in the attached widget, which may affect
performance.
sssseeeettttIIIInnnnccccrrrreeeemmmmeeeennnnttttssss(((())))
void setIncrements(int resizeWidth,
int resizeHeight,
int moveX, int moveY);
VkResizer's geometry manipulations are configurable. The first two
parameters specify the resize increments in the horizontal and
vertical dimension, respectively. The last two parameters specify
the move increments in the horizontal and vertical dimension,
respectively. Setting an increment to zero prohibits resizing or
moving in that dimension.
sssshhhhoooowwwwnnnn(((())))
Boolean shown(void);
This function indicates whether VkResizer is visible and displaying
its geometry controls.
aaaattttttttaaaacccchhhh(((())))
void attach(Widget w);
This function is used to attach VkResizer to an existing widget. If
VkResizer is already attached to a widget, if first detaches.
Attaching to a widget sets up VkResizer for geometry control of that
widget. If VkResizer is shown, it displays its geometry controls
around the attached widget.
ddddeeeettttaaaacccchhhh(((())))
void detach(void);
This function detaches VkResizer from its attached widget. Its
geometry controls are removed.
aaaaddddjjjjuuuussssttttGGGGeeeeoooommmmeeeettttrrrryyyy(((())))
void adjustGeometry(void);
PPPPaaaaggggeeee 2222
VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr((((3333xxxx)))) VVVVkkkkRRRReeeessssiiiizzzzeeeerrrr((((3333xxxx))))
This function forces VkResizer to adjust its geometry controls to
the geometry of its attached widget. Use this function when auto-
adjustment was not selected in the VkResizer constructor, and the
attached widget has changed geometry.
ssssttttaaaatttteeeeCCCChhhhaaaannnnggggeeeeddddCCCCaaaallllllllbbbbaaaacccckkkk
static const const char* stateChangedCallback;
This callback informs the application when VkResizer has modified
the geometry of its attached widget. The reason for the callback
can be VR_resizing, VR_moving, VR_resized, or VR_moved. VR_resizing
and VR_moving indicate that resizing or moving are in progress, and
are sent repeatedly as the user adjusts the geometry. VR_resized
and VR_moved indicate that the resizing or moving is complete, and
are sent when the user releases the VkResizer geometry controls.
IIIINNNNHHHHEEEERRRRIIIITTTTEEEEDDDD MMMMEEEEMMMMBBBBEEEERRRR FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNNSSSS
IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
setDefaultResources(), getResources(), manage(), unmanage(),
baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
callCallbacks(), addCallback(), removeCallback(),
removeAllCallbacks(),
CCCCLLLLAAAASSSSSSSSEEEESSSS UUUUSSSSEEEEDDDD BBBBYYYY TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
VkApp
SSSSEEEEEEEE AAAALLLLSSSSOOOO
VkComponent, VkApp
_V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
_T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
_T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
_T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
PPPPaaaaggggeeee 3333